<?php
/* @var $this StkNoticiaController */
/* @var $dataProvider CActiveDataProvider */


$root = (isset(Yii::app()->user->Rol) and Yii::app()->user->Rol=="SuperUsuario") ? true : false;
$admin = (isset(Yii::app()->user->Rol) and Yii::app()->user->Rol=="Administrador") ? true : false;
$this->menu=array(
	array('label'=>'Crear Noticia', 'url'=>array('create'), 'visible'=>$root),
	array('label'=>'Gestionar Noticia', 'url'=>array('admin'), 'visible'=>$root),
	array('label'=>'Crear Noticia', 'url'=>array('create'), 'visible'=>$admin),
	array('label'=>'Gestionar Noticia', 'url'=>array('admin'), 'visible'=>$admin),
);
?>
<h1  class="tit-in">Novedades</h1>
<div id="news_content">
			<?php $this->widget('zii.widgets.CTableNews', array(
				'dataProvider'=>$dataProvider,	
				'itemView'=>'_view',
				'ajaxUpdate'=>false,
				'enablePagination' => true,		
				'pager' => array('class' => 'CLinkPager','firstPageLabel' => '<<', 'header'=>'', 'pageSize' => 6, 'prevPageLabel'  => '<', 'nextPageLabel'  => '>', 'lastPageLabel'  => '>>'),
			));
			?>			
</div>
